package org.itcast.travel.service;

import org.itcast.travel.exception.VoteNotAllowedExcepton;
import org.itcast.travel.pojo.Race;
import org.itcast.travel.pojo.RaceQueryParam;

import org.springframework.stereotype.Service;

@Service
public interface RaceService {
    void enrollFor(Race race);

    void update(Race race);

    Race getByid(Integer id);

    Object page(RaceQueryParam raceQueryParam);

    void delete(Integer id,Integer raceId);


    void vote(Integer userId, Integer raceId) throws VoteNotAllowedExcepton;
}
